package com.etone.smartAudit.utils;

/**
 * @author: sovy
 * @date: 2020/11/25
 * @description:
 */
public class BooleanUtil {
    /**
     * 判断boolean是否为true
     *
     * @param b
     * @return
     */
    public static Boolean isTrue(Boolean b) {
        return b != null && b;
    }

    /**
     * 判断boolean是否为false
     *
     * @param b
     * @return
     */
    public static Boolean isFalse(Boolean b) {
        return b != null && !b;
    }
}
